package string_learn;

/**
 * @author yuisama
 * @date 2022/09/23 19:04
 **/
public class Test {
    public static void main(String[] args){
//        char[] data = {'a','b','c'};
//        String str = new String(data);
        String str = "Admin";
        System.out.println(str.toLowerCase() == "admin");
//        String str = new String("abc");
        // 接收完返回值，str一定指向的是常量池中的字符串对象！！
//        str = str.intern();
//        String str1 = "abc";
//        System.out.println(str == str1);
    }
}